/* Main CSS - Animations and Shared Styles */

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0f0f0f;
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #8b5cf6;
}

/* Base Styles */
body {
  font-family: 'Inter', sans-serif;
  background-color: #050505;
  color: #e2e8f0;
  overflow-x: hidden;
}

/* Selection */
::selection {
  background-color: #ea580c;
  color: white;
}

/* Animations - Framer Motion Replacements */

/* Fade In/Out */
.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
  animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Slide Animations */
.slide-in-from-top {
  animation: slideInFromTop 0.3s ease-out;
}

.slide-in-from-bottom {
  animation: slideInFromBottom 0.3s ease-out;
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scale Animations */
.scale-in {
  animation: scaleIn 0.3s ease-out;
}

.scale-out {
  animation: scaleOut 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes scaleOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.9);
  }
}

/* Dropdown Animations */
.dropdown-enter {
  animation: dropdownEnter 0.2s ease-out;
}

.dropdown-exit {
  animation: dropdownExit 0.2s ease-out;
}

@keyframes dropdownEnter {
  from {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
  to {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

@keyframes dropdownExit {
  from {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
  to {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top;
  }
}

/* Floating Icons Animation */
.float-animation {
  animation: float 5s ease-in-out infinite;
}

.float-animation-delayed {
  animation: float 7s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.2;
  }
  50% {
    transform: translateY(-20px);
    opacity: 0.5;
  }
}

.float-animation-reverse {
  animation: floatReverse 7s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes floatReverse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.1;
  }
  50% {
    transform: translateY(20px);
    opacity: 0.3;
  }
}

/* Gradient Animation */
.animate-gradient-xy {
  background-size: 200% 200%;
  animation: gradientXY 15s ease infinite;
}

@keyframes gradientXY {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Pulse Animation */
.pulse-animation {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Smooth Transitions */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Menu Animation */
.mobile-menu-enter {
  animation: mobileMenuEnter 0.3s ease-out;
}

.mobile-menu-exit {
  animation: mobileMenuExit 0.3s ease-out;
}

@keyframes mobileMenuEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes mobileMenuExit {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Utility Classes */
.hidden {
  display: none;
}

.visible {
  display: block;
}

.opacity-0 {
  opacity: 0;
}

.opacity-100 {
  opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress-fill {
  height: 100%;
  background: #ea580c;
  transform-origin: left;
  transition: transform 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(234, 88, 12, 0.5);
}

.scroll-progress-track {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.05);
  opacity: 0.2;
}
